package com.thkj.business.examine.service.impl;

import com.thkj.business.examine.entity.TblCheck;
import com.thkj.framework.base.BaseService;
import dp.dao.PagingList;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class TblCheckServiceImpl extends BaseService implements com.thkj.business.examine.service.impl.TblCheckService {
    public void insertTblCheck(TblCheck t){
        dao.insert("com.thkj.mapper.TblCheck.insert", t);
    }

    public int updateTblCheck(TblCheck t){
        int row = dao.update("com.thkj.mapper.TblCheck.update", t);
        return row;
    }

    public int deleteTblCheck(String t ){
        return dao.delete("com.thkj.mapper.TblCheck.delete", t);
    }

    public TblCheck getTblCheckById(String t){
        return dao.queryForObject("com.thkj.mapper.TblCheck.getById", t, TblCheck.class);
    }

	@Override
	public PagingList<Map> query(int pageIndex, int pageSize, Map<String, Object> param) {
		return dao.queryForPagingList("com.thkj.mapper.TblCheck.query",param, pageIndex, pageSize, Map.class);
	}

	@Override
	public int updateResult(TblCheck t) {
		 int row = dao.update("com.thkj.mapper.TblCheck.updateResult", t);
	        return row;
	}

}